﻿using MediatR;
using U.B.ErrorCode;

namespace U.B.WriteApi.Command
{
    public class UpdateLeaveCommand:IRequest<ApiResult<string>>
    {
        /// <summary>
        /// 登陆人
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 登陆人
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 审核意见 通过/不通过
        /// </summary>
        public int AppResult { get; set; }
        /// <summary>
        /// 驳回原因
        /// </summary>
        public string? Reason { get; set; }

        /// <summary>
        /// 主键
        /// </summary>

        public int LAId { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string LeaveName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 请假类型
        /// </summary>
        public string LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int LeaveHours { get; set; }
        /// <summary>
        /// 总工时(天/小时)
        /// </summary>
        public string LeaveHoursDisplay { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ReportTime { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string LeaveReason { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string LeaderName { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string LeaderIds { get; set; }
        /// <summary>
        /// 审批状态--1.待审核，2.已通过，3.已拒绝
        /// </summary>
        public int StatusId { get; set; }
        /// <summary>
        /// 审批状态--1.待审核，2.已通过，3.已拒绝
        /// </summary>
        public string StatusName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}
